Range: Fix inverted vert scrolling on horiz Ranges
authorDaniel Boles <dboles@src.gnome.org>
Tue, 19 Dec 2017 18:07:02 +0000 (18:07 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 19 Dec 2017 18:40:51 +0000 (18:40 +0000)
commit4d18a346c14898db2f0e014eaeaa54932b670ea6
tree930c27171032525124eb12b3d6d245abbedf5c6d
parent09c94c27e1e9e08c6c9962f915b71253c0c6adce
Range: Fix inverted vert scrolling on horiz Ranges

Users expect, & previous patches have tried to assure, that scrolling up
over a horizontal Range will cause the value to increase & vice-versa.
But the path using directions was still negating the delta & decreasing
the value on scrolling up. This could be seen on Win32 or X without XI2.

So, only negate the delta when scrolling down (or left), not up, so that
scrolling up (or right) will make the value increase for any event type.

https://bugzilla.gnome.org/show_bug.cgi?id=737175#c5
gtk/gtkrange.c